const wear=require('../models/wearModel');


var wearModel=wear.model;
//查询一个类型的衣服
async function findByKind(kind) {
    var data=await wearModel.find({kind:kind});
    return data;
}
async function findByImgsrc(imgsrc) {
    var data=await wearModel.find({image:imgsrc});
    return data;
}
exports.findByKind=findByKind;
exports.findByImgsrc=findByImgsrc;